package com.bed.lovewithpatientbed.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * hospital
 * @author 
 */
public class Hospital implements Serializable {
    private Integer hospitalId;

    private Integer deptId;

    private String hospitalName;

    private Integer addressId;

    private Integer hospitalManagerId;

    private Integer dealerId;

    private String hospitalCard;

    private BigDecimal hospitalRent;

    private Double hospitalGainsharing;

    private Integer softdel;

    private Address address;

    private List<Dept> deptList;

    private HospitalManager hospitalManager;

    private Dealer dealer;

    private static final long serialVersionUID = 1L;

    public List<Dept> getDeptList() {
        return deptList;
    }

    public void setDeptList(List<Dept> deptList) {
        this.deptList = deptList;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public HospitalManager getHospitalManager() {
        return hospitalManager;
    }

    public void setHospitalManager(HospitalManager hospitalManager) {
        this.hospitalManager = hospitalManager;
    }

    public Dealer getDealer() {
        return dealer;
    }

    public void setDealer(Dealer dealer) {
        this.dealer = dealer;
    }

    public Integer getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(Integer hospitalId) {
        this.hospitalId = hospitalId;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getHospitalName() {
        return hospitalName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Integer getHospitalManagerId() {
        return hospitalManagerId;
    }

    public void setHospitalManagerId(Integer hospitalManagerId) {
        this.hospitalManagerId = hospitalManagerId;
    }

    public Integer getDealerId() {
        return dealerId;
    }

    public void setDealerId(Integer dealerId) {
        this.dealerId = dealerId;
    }

    public String getHospitalCard() {
        return hospitalCard;
    }

    public void setHospitalCard(String hospitalCard) {
        this.hospitalCard = hospitalCard;
    }

    public BigDecimal getHospitalRent() {
        return hospitalRent;
    }

    public void setHospitalRent(BigDecimal hospitalRent) {
        this.hospitalRent = hospitalRent;
    }

    public Double getHospitalGainsharing() {
        return hospitalGainsharing;
    }

    public void setHospitalGainsharing(Double hospitalGainsharing) {
        this.hospitalGainsharing = hospitalGainsharing;
    }

    public Integer getSoftdel() {
        return softdel;
    }

    public void setSoftdel(Integer softdel) {
        this.softdel = softdel;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Hospital other = (Hospital) that;
        return (this.getHospitalId() == null ? other.getHospitalId() == null : this.getHospitalId().equals(other.getHospitalId()))
            && (this.getDeptId() == null ? other.getDeptId() == null : this.getDeptId().equals(other.getDeptId()))
            && (this.getHospitalName() == null ? other.getHospitalName() == null : this.getHospitalName().equals(other.getHospitalName()))
            && (this.getAddressId() == null ? other.getAddressId() == null : this.getAddressId().equals(other.getAddressId()))
            && (this.getHospitalManagerId() == null ? other.getHospitalManagerId() == null : this.getHospitalManagerId().equals(other.getHospitalManagerId()))
            && (this.getDealerId() == null ? other.getDealerId() == null : this.getDealerId().equals(other.getDealerId()))
            && (this.getHospitalCard() == null ? other.getHospitalCard() == null : this.getHospitalCard().equals(other.getHospitalCard()))
            && (this.getHospitalRent() == null ? other.getHospitalRent() == null : this.getHospitalRent().equals(other.getHospitalRent()))
            && (this.getHospitalGainsharing() == null ? other.getHospitalGainsharing() == null : this.getHospitalGainsharing().equals(other.getHospitalGainsharing()))
            && (this.getSoftdel() == null ? other.getSoftdel() == null : this.getSoftdel().equals(other.getSoftdel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getHospitalId() == null) ? 0 : getHospitalId().hashCode());
        result = prime * result + ((getDeptId() == null) ? 0 : getDeptId().hashCode());
        result = prime * result + ((getHospitalName() == null) ? 0 : getHospitalName().hashCode());
        result = prime * result + ((getAddressId() == null) ? 0 : getAddressId().hashCode());
        result = prime * result + ((getHospitalManagerId() == null) ? 0 : getHospitalManagerId().hashCode());
        result = prime * result + ((getDealerId() == null) ? 0 : getDealerId().hashCode());
        result = prime * result + ((getHospitalCard() == null) ? 0 : getHospitalCard().hashCode());
        result = prime * result + ((getHospitalRent() == null) ? 0 : getHospitalRent().hashCode());
        result = prime * result + ((getHospitalGainsharing() == null) ? 0 : getHospitalGainsharing().hashCode());
        result = prime * result + ((getSoftdel() == null) ? 0 : getSoftdel().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", hospitalId=").append(hospitalId);
        sb.append(", deptId=").append(deptId);
        sb.append(", hospitalName=").append(hospitalName);
        sb.append(", addressId=").append(addressId);
        sb.append(", hospitalManagerId=").append(hospitalManagerId);
        sb.append(", dealerId=").append(dealerId);
        sb.append(", hospitalCard=").append(hospitalCard);
        sb.append(", hospitalRent=").append(hospitalRent);
        sb.append(", hospitalGainsharing=").append(hospitalGainsharing);
        sb.append(", softdel=").append(softdel);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}